package thread;

public class ThreadinfoDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main);
        doSome();
    }
    public static void doSome() {
        Thread t = Thread.currentThread();
        System.out.println(t);
        System.out.println(t.getName());
        System.out.println(t.getPriority());
        System.out.println(t.getId());
        System.out.println(t.isAlive());
        System.out.println(t.isDaemon());
    }
}
